package cn.liweixi.log.service.impl;

import cn.liweixi.basic.service.impl.BaseSeviceImpl;
import cn.liweixi.log.domain.Log;
import cn.liweixi.log.mapper.LogMapper;
import cn.liweixi.log.service.ILogService;
import com.sun.xml.internal.ws.util.JAXWSUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class ILogServiceImpl extends BaseSeviceImpl<Log> implements ILogService {
    @Autowired
    private LogMapper logMapper;
    private JAXWSUtils UUIDTool;


    @Override
    public void saveLog(Log log) {
        log.setLogId(UUIDTool.getUUID());
        logMapper.saveLog(log);
    }
}
